html,
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

// 美化滚动条
/*滚动条的宽度*/

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/*外层轨道。可以用display:none让其不显示，也可以添加背景图片，颜色改变显示效果*/

::-webkit-scrollbar-track {
  background-color: white;
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
}
/*滚动条的设置*/

::-webkit-scrollbar-thumb {
  background-color: #c0c4cc;
  background-clip: padding-box;
  min-height: 28px;
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  border-radius: 1em;
}
/* 去掉地图mapbox水印 */
.d2cgl-ctrl.d2cgl-ctrl-attrib {
  display: none !important;
}

/* 美化地图popup */
.d2cgl-popup {
  max-width: unset !important;
  opacity: 0.9;
}
.d2c-ctrl-style {
  position: absolute;
  top: 150px;
  right: 80px;
  /* ui */
  width: 326px;
  height: 219px;
  background: #ffffff;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  opacity: 1;
  border-radius: 2px;
}
.d2cgl-popup-content {
  padding: 0;
}
.d2cgl-popup-close-button {
  font-size: 16px;
  color: #fff;
}
.popup_features {
  width: 240px;
  .popup_feature {
    .title {
      padding: 10px 15px;
      background-color: #3da1d2;
      color: #fff;
      font-size: 15px;
    }
    .content {
      max-height: 250px;
      padding: 0 15px;
      overflow-y: auto;
      .property {
        .property_key {
          font-size: 13px;
        }
        .property_value {
          color: #888;
          font-size: 12px;
        }
      }
    }
  }
}

/* legend-color 用例样式 */
.legend-control {
  margin: 20px 406px 70px 0;
  .legends {
    height: auto;
    width: auto;
    display: flex;
    flex-direction: row-reverse;
    .legend-color-box {
      margin-left: 10px;
      .legend {
        padding: 0;
        height: 20px;
        .legend-color {
          display: inline-block;
          width: 40px;
          height: 20px;
        }
        .legend-name {
          color: #000;
        }
      }
    }
  }
}
.is-always-shadow {
  box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.2);
}
